<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Amaze UI Admin index Examples</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="assets/css/admin.css">
    <link rel="stylesheet" href="assets/css/app.css">
</head>

<body data-type="generalComponents">


    <header class="am-topbar am-topbar-inverse admin-header">
 
    </header>







    <div class="tpl-page-container tpl-page-header-fixed">
        <div class="tpl-left-nav tpl-left-nav-hover">
            <div class="tpl-left-nav-title">
                Amaze UI 列表
            </div>
            <div class="tpl-left-nav-list">
                <ul class="tpl-left-nav-menu">
                    <li class="tpl-left-nav-item">
                        <a href="grade3.html" class="nav-link active">
                            <i class="am-icon-home"></i>
                            <span>查看所有周报</span>
                        </a>
                    </li>
                    <li class="tpl-left-nav-item">
                        <a href="grade3submit.html" class="nav-link tpl-left-nav-link-list">
                            <i class="am-icon-bar-chart"></i>
                            <span>提交周报</span>
                        </a>
                    </li>

                </ul>
            </div>
        </div>





        <div class="tpl-content-wrapper">
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> 周报
                    </div>


                </div>
                <div class="tpl-block ">

                    <div class="am-g tpl-amazeui-form">


                        <div class="am-u-sm-12 am-u-md-9">
                            <form class="am-form am-form-horizontal">
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">本周学习内容 </label>
                                    <div class="am-u-sm-9">
                                        <textarea class="g3_content" rows="5" id="g3_content" placeholder="本周学习内容"></textarea>
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-email" class="am-u-sm-3 am-form-label">总结及心得体会</label>
                                    <div class="am-u-sm-9">
                                        <textarea class="g3_get" rows="5" id="g3_get" placeholder="总结及心得体会"></textarea>
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-phone" class="am-u-sm-3 am-form-label">本周工作内容及完成情况</label>
                                    <div class="am-u-sm-9">
                                        <textarea class="g3_job" rows="5" id="g3_job" placeholder="本周工作内容及完成情况"></textarea>
                                    </div>
                                </div>


                                <div class="am-form-group">
                                    <label for="user-weibo" class="am-u-sm-3 am-form-label">待解决问题及所需帮助</label>
                                    <div class="am-u-sm-9">
                                    	<textarea class="g3_need" rows="5" id="g3_need" placeholder="待解决问题及所需帮助"></textarea>
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <div class="am-u-sm-9 am-u-sm-push-3">
                                        <button type="button" class="am-btn am-btn-primary">提交</button>
                                    </div>
                                </div>
                                
                            </form>
                        </div>
                    </div>
                </div>

            </div>

        </div>

    </div>


    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/amazeui.min.js"></script>
    <script src="assets/js/app.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
  		$("button").click(function(){
  	  		var g3_content = $(".g3_content").val();
  	  		var g3_get = $(".g3_get").val();
  	  		var g3_job = $(".g3_job").val();
  	  		var g3_need = $(".g3_need").val();
 			$.ajax ({
  				url : "http://localhost:8800/week_report/my/submitReport",
  				type : "post",
  				data :
			    {
			        "g3_content" : g3_content,
			        "g3_get" : g3_get,
			        "g3_job" : g3_job,
			        "g3_need" : g3_need
			    },
  				success : function (data)
  				{
  	  				
  				}
  			});
 			alert("success");
  	  });
   });
    </script>
</body>

</html>